<%--
  Created by IntelliJ IDEA.
  User: Wei Feng Yan
  Date: 2020/3/3
  Time: 10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>入门程序</title>
</head>
<body>

<a href="hello/hello">hello</a>
<a href="hello/good">good2</a>
<a href="hello/save?id=1">save</a>

<a href="param/baseType?id=1&money=2.2&remark=我要转账">基本类型参数</a>

<hr>
<form action="param/pojoType" method="post">
    Username: <input type="text" name="name">
    Money: <input type="text" name="money">
    Province <input type="text" name="address.provinceName">
    City <input type="text" name="address.cityName">
    <input type="submit" value="保存">
</form>
<hr>
<form action="param/pojoListAndMapType" method="post">
    用户名称：<input type="text" name="username" ><br/>
    用户密码：<input type="password" name="password" ><br/>
    用户年龄：<input type="text" name="year" ><br/>
    账户 1 名称：<input type="text" name="accountList[0].name" ><br/>
    账户 1 金额：<input type="text" name="accountList[0].money" ><br/>
    账户 2 名称：<input type="text" name="accountList[1].name" ><br/>
    账户 2 金额：<input type="text" name="accountList[1].money" ><br/>
    账户 3 名称：<input type="text" name="accountMap['one'].name" ><br/>
    账户 3 金额：<input type="text" name="accountMap['one'].money" ><br/>
    账户 4 名称：<input type="text" name="accountMap['two'].name" ><br/>
    账户 4 金额：<input type="text" name="accountMap['two'].money" ><br/>
    <input type="submit" value="保存">
</form>
<hr>

<a href="param/dateType?date=2019-02-23">日期问题</a>
<a href="param/servletApiType?date=2019-02-23&username=ywf&year=21">ServletApi</a>

<hr>
<h1>注解学习</h1>
<a href="annotation/requestParam?name=yanweifeng">requestParam注解学习</a>
<br>
<form action="annotation/requestBody" method="post">
    Username: <input type="text" name="name">
    Money: <input type="text" name="money">
    Province <input type="text" name="province">
    City <input type="text" name="city">
    <input type="submit" value="保存">
</form>
<br>
<a href="annotation/pathVariable/31587/你好">pathVariable注解学习</a>
<br>
<form action="annotation/hiddenHttpMethodFilter/11111" method="post">
    <input type="hidden" name="_method" value="DELETE">
    Username: <input type="text" name="name">
    Money: <input type="text" name="money">
    Province <input type="text" name="province">
    City <input type="text" name="city">
    <input type="submit" value="保存">
</form>
<br>
<a href="annotation/requestHeader">requestHeader注解学习</a>
<br>
<a href="annotation/cookieValue">cookieValue注解学习</a>
<hr>注解学习</h1>
<a href="CommonNotes/requestParamsTest">requestParamsTest学习</a>
<hr>
<a href="responseData/modelAndViewTest">modelAndViewTest学习</a>
<hr>
<a href="responseData/forwardTest">转发测试</a>
</body>
<a href="responseData/redirectTest">重定向测试</a>

<hr>

<%--<script type="text/javascript"--%>
<%--        src="${pageContext.request.contextPath}/js/jquery.min.js"></script>--%>
<%--<script type="text/javascript">--%>
<%--    $(function(){--%>
<%--        $("#testJson").click(function(){--%>
<%--            $.ajax({--%>
<%--                type:"post",--%>
<%--                url:"${pageContext.request.contextPath}/responseJsonTest",--%>
<%--                contentType:"application/json;charset=utf-8",--%>
<%--                data:'{"id":1,"name":"test","money":999.0}',--%>
<%--                dataType:"json",--%>
<%--                success:function(data){--%>
<%--                    alert(data);--%>
<%--                }--%>
<%--            });--%>
<%--        });--%>
<%--    })--%>
<%--</script>--%>
<%--<!-- 测试异步请求 -->--%>
<%--<input type="button" value="测试 ajax 请求 json 和响应 json" id="testJson"/>--%>
<hr>
<br>
<hr>
<form action="uploadFile" method="post" enctype="multipart/form-data">
    图片：<input type="file" name="file">
    <input type="submit" value="上传">
</form>
</body>
</html>
